<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>城市信息列表</title>
<script type="text/javascript" src="${staticWebsite}admin/js/common_min.js"></script>
<script type="text/javascript" src="${staticWebsite}admin/js/common.js"></script>
<link rel="stylesheet" href="${website}resource/admin/css/admin.css" type="text/css" />
</head>
<script type="text/javascript">
	$(document).ready(function(){
		changeColor();
	});
</script>
<body>
<div class="currentPosition"><img src="${staticWebsite}admin/images/tb.gif"/>城市基本信息列表<span style="margin-left:850px;">
	<c:if test="${fn:length(cityInfoList)< 9}">
		<img src="${staticWebsite}admin/images/add.gif"/>
		<a href="${website}admin/city_toAddBasicInfo.action">添加</a>
	</c:if>
 </span></div>
	
	<table class="commonTable">
		<thead>
			<tr>
				<th width="20%">序号</th>
				<th width="50%">城市名称</th>
				<th colspan="2">基本操作</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach var="cityInfo" items="${cityInfoList}" varStatus="status">
				<tr>
					<td>${status.count}</td>
					<td>${cityInfo.cityName}</td>
					<td><a href="${website}admin/city_showOneCityBasicInfo.action?id=${cityInfo.id} ">查看</a></td>
					<td><img src="${staticWebsite}admin/images/del.gif"/><a href="${website}admin/city_toModifyBasicInfo.action?id=${cityInfo.id}" style="margin-left:5px;">编辑</a></td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
</body>
</html>